<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-msg_id" class="control-label col-xs-12 col-sm-2">{:__('Msg_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-msg_id" data-rule="required" data-source="msg/index" class="form-control selectpage" name="row[msg_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-direction" class="control-label col-xs-12 col-sm-2">{:__('Direction')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-direction" class="form-control" name="row[direction]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-timestamp" class="control-label col-xs-12 col-sm-2">{:__('Timestamp')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-timestamp" data-rule="required" class="form-control" name="row[timestamp]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label for="c-to" class="control-label col-xs-12 col-sm-2">{:__('To')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-to" data-rule="required" class="form-control" name="row[to]" type="text" value="0">
        </div>
    </div>
    <div class="form-group">
        <label for="c-from" class="control-label col-xs-12 col-sm-2">{:__('From')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-from" data-rule="required" class="form-control" name="row[from]" type="text" value="0">
        </div>
    </div>
    <div class="form-group">
        <label for="c-chat_type" class="control-label col-xs-12 col-sm-2">{:__('Chat_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-chat_type" class="form-control" name="row[chat_type]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-payload" class="control-label col-xs-12 col-sm-2">{:__('Payload')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-payload" class="form-control " rows="5" name="row[payload]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
